Skip to content

Libraries by URL in share links; notes for broken and long links (#29, onto main) - #30

Merged
cedricvogel-leo merged 2 commits into
mainfrom
feature/tab-projects
Oct 30, 2026
Merged

cedricvogel-leo merged 2 commits into
mainfrom
feature/tab-projects

Conversation

@cedricvogel-leo

Copy link
Copy Markdown
Collaborator

This PR carries the reviewed changes of #29 (libraries by URL in share links, notes for broken and long links) onto main. #29 was merged into its stacked base feature/tab-projects (merge commit ab88f51) before GitHub switched that base to main, so its changes aren't live yet. Review and wording: see #29.

Checked

Order: merging deploys #29's changes. Merge the macro PR glpython-edu/glpython-liascript#26 only after that deploy: an IDE before it can't read the macro's version 2 links.

🤖 Generated with Claude Code

cedricvogel-leo and others added 2 commits October 30, 2026 09:57
Share links of version 2 name a library by its URL instead of carrying its
code ({path, url, readOnly: true}), so an Etappe 4 link with parser.py has
about 1,200 characters instead of 5,157. The IDE fetches a library once when
the link opens (https or http on localhost, at most 1 MB, without cookies)
and keeps its text with the tab's project, so reload and offline use the
copy. The file drawer lists it under «Bibliotheken» with its host and a
lock; a library that can't be loaded (HTTP status, network error,
timeout, too large) is named in the drawer and a notice with «Erneut
versuchen», and importing it raises Python's own ModuleNotFoundError, as
in the LiaScript macro. «Teilen» names it by URL again; the ZIP holds its
code and lists its URL in glpython.json. Links without libraries stay
version 1, and links of version 1 open as before.

A link that can't be read (cut off, e.g. by OneNote at 2,083 characters,
or damaged) opens an empty project with «Dieser Link ist unvollständig oder
beschädigt. …» - never another project.

«Teilen» still copies a link longer than 2,083 characters, with a note to
download the project for a hand-in and a «Herunterladen» button.

The unsaved-changes fingerprint ignores read-only files: a library
arriving after its fetch is no change of the learner's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Libraries by URL in share links; notes for broken and long links
@cedricvogel-leo
cedricvogel-leo merged commit e609bfc into main Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant